def fibo(n):
    if n <= 0:
        print("请输入大于0的数字")
        return
    elif n == 1:
        return [0]
    elif n == 2:
        return [0, 1]
    else:
        fibo_list = [0, 1]
        a, b = 0, 1
        for _ in range(n - 2):
            a, b = b, a + b
            fibo_list.append(b)
        return fibo_list
